adding PUT method