removed unnessary return, replacing with a recursive call.