can now get total num of res