added drawGrid