turn enum AccelarateType into class enum