function renamed to fn.