Can you assign `bucketsInfo[type]` into a variable for the function?