added code to check for next station