updated terminal and orm files to try to delete duplicates