fix take command to use linq for more streamlined behavior