changed extern function format