adjustment to java1.6 - the same as android version