changed scaling max to -1