added syntaxerror error for pregel algorithm