add functions for adding grid