implemented new hubhub function