add extern keyword for function