function view self source code