registereing getter/setter for max speed