extracting duplicate details opening logic