calculate the cue values