most of third chapter converted and checked