modified code good