rewrite for better mobile support