bug to fix

get_new_challenge() needs to be fixed according to comments