make state field optional