some mobiles don't support log10, so use regular log instead