refactor into functions