added "Unexpected end" error