moving let()s out of behavior