changes to get values from table done