improved code structer of bid transaction