fixed problems with engine