deleted old init deck function