added arrival query