replace music.random by music.mode property