use bool to indicate index time