finally it needs a struct not a function in this case