add check for scratch codes