snap finally works, but it only selects the first element and not the other two