improve runtime check of properties attributes