complete some codes