made a new function for clarity
changed BUFFER_SIZE to 16