Removed gaviphase2 varible and fixed SyntaxError