removed unused globals