added closeStatement