updated scope format to use lambda