fixed syntax-errors, build runable programm