solve compiler error