added extern defined variables