updated functions.php to remove the type parameter.