added forgottent close statement