implemented sequence in preview