implement helper class