finish factorial