cast parent instead of hardcoding to hierarchy