adding code prototype to portal