removes copied code (too heavy)
simplified engine version