implemented put-key (naive)