prototype funcLib