fixed d helper, cleaned up