working on bid functionality