making the code actually work