changed interface of getGrid