get method is working and get table method corrected