removed unnecessary references/functions using 'objective' parameter