adding debug info to figure if somethings wrong