foo() works properly now

coz i am that cool :)