added "em dash" when empty
fixed function name