removed local reference to engine