added new factory for addToNextList function\