changed 20*log() to 20*log10()