refactor micducking into a helper class.