changes to show correct output in all browser