define early functions early