use common.SWARMSIZE instead of harcoding algorithm