removed encode, as it changes each time it's called