taking all the measurements