added functions for created grid