add remove function in the engine