using floats for percent calculation