fixed issue with functions not being able to be used for .text( ) labels