What code do you have so far?
What did you try?
What is your hold function supposed to do?
What is it about this hold function that you don't know how to do or can't seem to make to work?
>>can anyone help me?
We can answer questions or help you solve a problem, but first, you have to describe the problem, ask a relevant question, and show that you have put effort into solving the problem yourself. Answering the questions above is probably a good way to do that.