fixed number function bug, returns correct response now