moved con to function.php