commented out old edit function