switch to ngifs
parsefloat only once