working init q multi agent for variable predsize