working version of lensing power with no multiprocessing (not worth the trouble)