cleanup algorithm