added comments and case for divide