use helpers instead of repeating code