removed dependency from hal.h