semi working code for esignReport