grid seems working but errors not correct