beginning of Goal handling