removing an unwanted method in rest EP