started adding vectors to paul's functions