added example for contain mode