making table to use reference instead of copy of the array