q39,40 added