some printlines removed