updated line following code