remove unneeded encode fn