avail idx increamented properly