added log10 function