put method working