added cleanup method to delete old entries