whip into shape

Verb

 * 1)  To exert considerable effort to change something or someone into a desired state.