break should be used instead of return.