change type of arrival time to primitve Long to avoid NPEs