trying to fix code match bug