unused $result variable removed