check for api levels to prevent deprecated version calls