removed unnecessary extern