move helper to common