add special code func