this transform repeated >30 times, factoring into own functions.