adding new procedures and table refactoring