got the ends working