functions for global variables
add Sound and the related functions