add the linenumber function for the codes