fixed so it works with projectC