created psuedo traversal method for 18, need to make it dynamic