grid on the correct function