use when's ensure in prefereance to always