several error corrections