offspring function complete.