add set method to dedupbuffer