update version4 with minor bugs