copied from HAIBA-EPIMIBA