silly issues

dividing by 0 and lines of code that didn't need to be there or in wrong
place