added line number transfer & storage for functions