fixing create_sample