add nullable pattern