reformating code, begin data structures