first implementation with word values