removed unnecessary variables
Fixed a parse error
removed debug statements