deck model works but need improvments