added dynamic formation size