adapt for mobile