optimized functions.php with constants