for bug null write