updated to work with kyle's data