edit_temp is now fully tested