grid initialized safely