adapted to mobile (somewhat)