starting to namespace out functions