partial implementation of finding code duplication