compay/all controller logic