added __func__ to debug