added digits to condition