created a helper