changed to using contains instead of equals