fix each in code