refactoring
initial simple duplication check, using unitsize method