improved handling display for functions