working, but not the same results as expected