changed the hubhub function