type error lead to data loss
debug