nicer: attach after the next if check