assign failure classes within method