optimised used functions.php file