cleaned up several syntax errors