some operations for control unit (not finished yet)