modified problem_JP and solution