added an ensure block