minor refactoring of general_helper.php