fixed another casting in main (sorry lol)