used static instead of extern.