init good bad frames finished