modify item put method