fixed the mobile script