Found the trigger not working well bug, because of c abs, now using std::abs