adding penalties code.