got rid of manual relational table