add small delay to play function