resoving code inconsistent issue