2afc code added