Write correct put implem