project can be compiled now, program fails though