optimized helper class