removed redundant code from functions.php