bid logic