[dynamo] create a helper method