added NP check while updating the free text