error displayed instead of code