move helper to main not test