FLATNESS BASED DESIGN