implemented a test &&
implemented a test ||