added valid codes