adding function to get bid