fixed problems with compiler