add general code.