working but crop not correct