clean up and map resize