modifying the rest api