changed grid metrics to be more dynamic