use insert instead of deprecated unshift