runwhile() bool -> func()bool conversion