added debug statement echoing the result