beginning work on grid functions