guard the edges for mobile