please dont use underscores in variables, $name is fine. same for $collection