fixing compile errors regarding missing semicolons