Revert "Revert "converting to vectors""

This reverts commit e0dc92fa19994e938fae96f03696a68d08ec3218.