better solution with repeated sounds