added functions.php for stage