merge sound and touch function