bug in objective, q + 1  for static energy