add reset and modify prescaler