adding PUT functionality