moved print function to deck