valid code complete