fixed empty being used on a function