fixing duplicate column issue