fixed uniqueness, now this works with the error block