put declared music object outside of if statement to fix cutting off
of music