change collection to vocabulary;add trial functions