space for each flag reserved, just the algorithm itself and some finetunings are left