multi-thread for grid