match float type to avoid warnings