code syntax errors corrected