display now works for functions