renaming endpoints to method