made float division on weightings work