error fixed in getting the results