most functions converted