grid main and frw strategy