added speed as program argument