removed trash code
first acceptable working version
formatted code