removed unused extern variables