add compatibility to API level 8