fixed syntax of ensure