use unshift and push methods