fixed compiler issues