A way to reduce pedestrian wait time when crossing the street