script for parents updated