calculating distributions