writing wrapper of lensing