fix for api's less than 11