init getting value from parent