edit bid function