working let to fn rule