added speed stuff