learn grid function