adding build volcabulary function