adds delete funcitonality