extern functions working properly