check same parent