add minor improvement to active factory calculation