helper for classical inheritance