Changed result output to boolean but still issues