better way to do hub