resource leak removed