implemented array=True for the quick function