grid clean up
validate grid code added