basic functions in order of process