figured out solution to the clos error