@updated the post.
I have tried many different input values but when i run the code nothing happens. Have i missed something obvious ???
You might have more clarity in your question if you put your code into your post or, at least, in a Mathematica notebook.