modified script crop