added working edit