made the buffer location seperate