removing unused items; correcting bad data def