faster grid creation