added parameter for crop