removed extern qualifier to remove warning