fixed some minor syntax issues