added some syntax fixes