added loop and speed limit plot