number output is finally working, was debugging forever