filtering user defined functions

now user defined functions are also included in $list array