adjusted to use parent