cue function prototype added