slight modifications to show work