optimize p for mobile