added floatval in case value is null