Finish peep_resize

not tested.