better way of finding curl