unit setter improved using transform and lambda construct