final commit. the cards are working properely. not safe but working