fix errors in cap. 1/2