set two attributes as default substitute for else statement.