now problemval is calculated