added more logic for restoring the rotation while line following