modified two problem