fix print syntax errors