replace list by listOf using same style as for attrsOf