removed code in favor of linq version.