added arrow functionality