function.php tidy