add aps in every channel count code