scaling of values now works properly