added advanced bla algorithm