now have parent and child functionalty