made is_public attr_accessable