added debug satements