added the ten for two logic