filename is not obligatory on edit function