detect if the algo used by the user is okay