init some basic func