handle case where n is negative
update number of components on connect