~ refactor heavily used functions into helpers