changes to cost fn in seeds to correct regression