trying to get linear interpolation to work
working, in a cargo cult way