remove unused global variable