updated errors. check patterns