implemented tailing shrinking files