add default_class and check attributes is array