removed unused global variable