with debuging, before write to RB