control codes not displaying properly