purged code duplication