adding averging and changing to floats