extract helper class