check task duplicate