fix syntax and name error