making code fragment to fit without horizontal scrolling