fixed syntax errors and implemented jump