modulating functions.php for easier readability