ensure method