have finished coding function in .tpp, need moar tests