preparation for word vector