introduce O(1) slot assigning method