get and put method working