adding code to get target values