reuse function in functions.php