change test triangle to use fns for position; need to clean and separate these new fns soon