syntax fixes to get rid of compiler warnings