use helper type function