compatibility with keil compiler