made cueType an optional input