added ortho function/commented out some code