some error corrections