removed some unnecessary externs