pulled out functions from theme data