allow grid to be an argument