updated from the live copy in FM to give boolean output