changed [] to nil