changed indexof to contains to get bool returned instead