changed filter_str to the correct one and parse r[0] correctly
changed filter_str to the correct one and parse r[0] correctly