finished abs case of type preservation! it needs a lot of cleanup but it works