update distance message type
add stopping state