added printf statements and processbars