optimize gridifier