you can use return null instead of break, break only breakes for loop, return will exit the func