added slot allocation