first attempt at word parsing