minor fix: explicit cast from size_t to float