delete function --> can't pass rev