updated HLA base code