optimization for ant