edit spdef