updated Integrated code