added helper file for spec testing