Displaying codes correctly