switch to using data rather than grid