duplicate checker inplace captain