change bn function