updating line functions