updated variable name from targetValue to target