put method implementation