working on visit insert issue