positional add line functionality working