playing with edit function