bugfix put functions