change how equation on interactive line is created