put glitch effect inside 'try' clause