Change name condition to restrictions