put function creation