make shorter
cleaned up em a bit; got rid of using logspace