dist func intro