logaritmic scale fixed and tested