moved closecars computation to master and changed changespeed event.