useful functions to helpers.php