move trim to before crop