check for duplication to avoid defining a second input