add schedule func and activity_user func