assigning bucket to a variable