restored ensure dependency