fixed grade, but still consolouts undefined