implemented necessary functions for list of words