modifying the adding of litters funcitonality