Change all calls to '.delete' to .delete_key|pos