Putting code tag in the correct place