fix speed settings
remove dead code
add comment