added some methods to grid