implemented buf_skip()