add required array
first check format for type