syntax change for exists function