updated to show d on console