add function to write underline