ch4- small adjutment in the pseudo-code again...