removed boolean from func, playLoop instead