fixing presence issue