add cropping functions