finished adding table functions but there is an empty DF problem