implementing free issue function