fixed logic in coding documents