changed all vars from float to double added another level of hierachy
changed all vars from float to double added another level of hierachy