better write valid code