add encoding and break