implemented function-static variables