avoid using global buffer