refactor motion rate setting