integrated nesra's code