modifying biding function