add CS and buffer