add cleanup method. not used yet