changes made in process to check the buffer