fixing syntactical errors