added code duplication detector