implemented SUPPORT FOR API 9 and older (for settings)