before grid conversion