trying to solve compiler problem