added resize functionality for floats