initial grid working