added comminting to the code