The effect of crosswalks on traffic flow