remove duplicate declarations
remove more duplicates
initial contact logic.