Syntax errors. not sure about logic