before chanign objective funcs in chap 2