added indexing
added grid sizing