removing unused globals