repetitive functions, about to be refactored
refactor into two functions: feels good man.