updated R
updated for Kitkat