simplified scan_next()
deleted garbage files