added wpm functionality