first checking of calculation part