use ensure variable instead of 'present'