format time and other changes