update logics.cpp logics.h