changed bv to unsigned long int