Why do you use here a function?