added reachability test