Removed a bad d from code