removed extern function def