error outputs with ^ pointer