added basic traffic calculation