added arrows and repeats