implemented initial put method