encoding edit and reference added