adding creation and testing when data is nil