encode phase

encode phase done with strings