created three component
reconstruction code