added rechabilityChanged method