removed result = false; line