word adding functionality made