v 6.5b working code