pass parent flag variable
save class, is_parent information