fixes to avoid warnings and fix of HI sequence