- added method to get the target function for a user