i have no idea why my code works...