changed scaling formula