flatten one step at a time until we're as flat as we can be