start of put method