add grid and dry code