adding grid and partition stuff for later