added check for mobile devices