adding some more computations to the form