deleted 500 lines in engine class