working code
updated speeds