removed unused global variables