corrected open_stations function