added close statement