add total object count
iscollision speed up