creating grid