updated snippets for APL errors