use bool type from C99