MINOR: added debug info, removed unneeded function