modified select b_detail of company