modified for mobile