make cropping work