preliminary sound function done