return 0/1 instead of true/false