updated baby with new function