adds refs to grid