removed unexpected end