removed rep to check buffered writing