changed functions for conn only