extern function calls added