solution for compile