added a flag to change the transition point btw limitations