simplified $fn