crop completely rewritten