fixing if statement for ALL option