updated for BlackBerry