finish pow and log10
clean up code