removed editing and delete loops