Fixed the syntax errors, should print all