messy code because darrell needs to go. will email reults