fixed the array cached duplication applying unique method