add log, fix list iteration [:]