added the delete_at function