added put method to update stock