test version of duplicate logic