moved to arrayLists
removed recursive option
remove unused
simplified
removed function
simplified
refac
remove old code