update for pre-kitkat code