add gridlist and change gridnum to gridseparatenum