adding put method