resolve some errors. left one