fixed compiler problems