fix not used and assign