made it return either true or false