local changes from @rohit in new.c
local changes from @rohit to new.c
lanczos verified, cross check to see whether results are realistic