some debugging for while statement with round brackets, also trying to take into accoutn %d print statements