added arrows functionality