Please indent your code. It's very difficult to follow if there's no indentation.