added functionable and collection as a variable, so that clearer errors are thrown.