added control decks and fixed bug