changing put method