fixing issue with consuming method not accpeting the data